<form id="add-form" class="form-horizontal row" role="form" data-toggle="validator" method="POST" action="">

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">合同相关信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('合同名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-contract" class="form-control" readonly="readonly" name="row[contract]" type="text" value="{$row.contract|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('签订日期')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-sign_time" class="form-control" readonly="readonly" name="row[sign_time]" type="text" value="{$row.sign_time|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('生效日期')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-effect_time" class="form-control" readonly="readonly" name="row[effect_time]" type="text" value="{$row.effect_time|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('终止日期')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-end_time" class="form-control" readonly="readonly" name="row[end_time]" type="text" value="{$row.end_time|htmlentities}">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('合同附件')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <!--<div class="input-group">-->
                    <input id="c-img"  data-rule="" class="form-control" readonly="readonly" type="text" value="{$row.url|htmlentities}">
                    <!--</div>-->
                    {if condition="$row.url != '' "}
                    <ul class="row list-inline plupload-preview" id="p-img">
                        {foreach $file as $index=>$vo}
                        <li class="col-xs-3">
                            <a href="{$vo.name}" data-url="{$vo.name}" target="_blank" class="thumbnail">
                                <img src="{$vo.name}" onerror="this.src='/QjaGeuOTbZ.php/ajax/icon?suffix={$vo.suffix}';this.onerror=null;" class="img-responsive">
                            </a>
                        </li>
                        {/foreach}
                    </ul>
                    {/if}
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('合同内容')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea name="row[content]" disabled rows="7" cols="67">{$row.content|htmlentities}</textarea>
                </div>
            </div>
        </div>
    </div>



    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">客户信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('客户名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-client" class="form-control" readonly="readonly" name="row[client]" type="text" value="{$row.client|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('客户地址')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-site" class="form-control" readonly="readonly" name="row[site]" type="text" value="{$row.site|htmlentities}">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('联系人/负责人')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-contacts" class="form-control" readonly="readonly" name="row[contacts]" type="text" value="{$row.contacts|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('电话')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-phone" class="form-control" readonly="readonly" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">合同产品信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('产品/项目名称')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-project_name" class="form-control" readonly="readonly" name="row[project_name]" type="text" value="{$row.project_name|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('数量')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-count" class="form-control" readonly="readonly" name="row[count]" type="text" value="{$row.count|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('合同金额')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-money" class="form-control" readonly="readonly" name="row[money]" type="text" value="{$row.money|htmlentities}">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('产品规格')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-specification" class="form-control" readonly="readonly" name="row[specification]" type="text" value="{$row.specification|htmlentities}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('单价')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-price" class="form-control" readonly="readonly" name="row[price]" type="text" value="{$row.price|htmlentities}">
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="border-bottom: 2px solid #cccccc">
        <h3 style="margin-left: 20px;">款项费用支付信息</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('支付方式')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-pay" class="form-control" readonly="readonly" name="row[pay]" type="text" value="{$row.pay|htmlentities}">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('期数')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-periods" class="form-control" readonly="readonly" name="row[periods]" type="text" value="{$row.periods|htmlentities}">
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <h3 style="margin-left: 20px;">其它</h3>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"><span style="color: red;font-size: 15px">*</span>{:__('备注')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-msg" class="form-control" readonly="readonly" name="row[msg]" type="text" value="{$row.msg|htmlentities}">
                </div>
            </div>
        </div>
        <div class="col-xs-6">

        </div>
    </div>




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
        </div>
    </div>
</form>